﻿namespace LeadMaster.Models
{
    using System;
    using System.ComponentModel.DataAnnotations;
    using System.Collections.Generic;

    public class Companies
    {
        
        public int CompanyID { get; set; }

        [Required]
        [Display(Name="Company Name")]
        public string Company { get; set; }

        public string Address1 { get; set; }
        public string Address2 { get; set; }
        public string District { get; set; }
        public string Town { get; set; }
        public string County { get; set; }

        public string Postcode { get; set; }
        public string Telephone { get; set; }

        public string Email { get; set; }
        public string WWW { get; set; }
        public bool? HeadOffice { get; set; }
        public bool? Branch { get; set; }
        public bool? CreditChecked { get; set; }
        public string Alias { get; set; }
        public string Category { get; set; }

        [Display(Name = "Logo")]
        public string logo { get; set; }

        [Display(Name = "Company Number")]
        public string CoNumber { get; set; }

        [Display(Name = "Telephone 2")]
        public string Tel2 { get; set; }

        public string DefaultTelephoneField { get; set; }

        public virtual ICollection<Contacts> Contacts { get; set; }

        public virtual ICollection<Orders> Orders { get; set; }

        public virtual ICollection<Leads> Leads { get; set; }
    }
}